package com.atmilan.quartz.mapper;

import com.atmilan.quartz.model.entity.folli.FolliProduct;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * 
 * @Description: 
 * @author daigb
 * @date 2021-04-30
 */
@DS("source_hiku")
public interface FolliProductMapper extends BaseMapper<FolliProduct> {

    @Update("truncate table folli_product")
    void deleteAll();
    
    @Update("truncate table folli_product_back")
    void deleteProductBack();

    @Update("insert into folli_product_back select * from folli_product")
    void copyProductBack();

}
